<div class="logo-left"></div>
<div class="logo-right">
    <?php echo Yii::app()->params['namaSekolah']; ?><br />
    <?php
    if(Yii::app()->user->isGuest) {
        $login_link = '</br><span style="margin-left:135px;">'.CHtml::link('Login', Yii::app()->user->loginUrl, array('class'=>'loginlink')).'</span>';
        
        if($this->action->id!='login')
            echo $login_link;
        
    }
    else{
        date_default_timezone_set('Asia/Jakarta');
        echo '<span>Hello, '.ucwords(Yii::app()->user->getName()).'<br />Login Time : '.Yii::app()->user->getState('logintime').'</span>';
        echo '<span style="margin-left:20px;">'.CHtml::link('Logout', Yii::app()->user->logoutUrl, array('class'=>'loginlink')).'</span>';
    }
    ?>
    
    
</div>
<div class="logo-center">
<?php echo CHtml::encode(Yii::app()->name); ?><br />
<span></span>
</div>



